//
//  ShufflingFigureLayout.swift
//  NetWork
//
//  Created by Delin Meng 孟德林 on 2018/10/30.
//  Copyright © 2018 Delin Meng 孟德林. All rights reserved.
//

import UIKit

class ShufflingFigureLayout: UICollectionViewFlowLayout {

    override func prepare() {
        super.prepare()
        itemSize = collectionView?.bounds.size ?? CGSize.zero
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
        scrollDirection = .horizontal
        collectionView?.isPagingEnabled = true
        collectionView?.bounces = true
        collectionView?.backgroundColor = UIColor.clear
        collectionView?.showsVerticalScrollIndicator = false
        collectionView?.showsHorizontalScrollIndicator = false
    }

}
